package com.java110.intf.goods;

import com.java110.intf.FeignConfiguration;
import com.java110.dto.allocationOrder.AllocationOrderProductDto;
import com.java110.po.allocationOrderProduct.AllocationOrderProductPo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

/**
 * @ClassName IAllocationOrderProductInnerServiceSMO
 * @Description 调拨单接口类
 * @Author wuxw
 * @Date 2019/4/24 9:04
 * @Version 1.0
 * add by wuxw 2019/4/24
 **/
@FeignClient(name = "mall-goods", configuration = {FeignConfiguration.class})
@RequestMapping("/allocationOrderProductApi")
public interface IAllocationOrderProductInnerServiceSMO {


    @RequestMapping(value = "/saveAllocationOrderProduct", method = RequestMethod.POST)
    public int saveAllocationOrderProduct(@RequestBody AllocationOrderProductPo allocationOrderProductPo);

    @RequestMapping(value = "/updateAllocationOrderProduct", method = RequestMethod.POST)
    public int updateAllocationOrderProduct(@RequestBody AllocationOrderProductPo allocationOrderProductPo);

    @RequestMapping(value = "/deleteAllocationOrderProduct", method = RequestMethod.POST)
    public int deleteAllocationOrderProduct(@RequestBody AllocationOrderProductPo allocationOrderProductPo);

    /**
     * <p>查询小区楼信息</p>
     *
     * @param allocationOrderProductDto 数据对象分享
     * @return AllocationOrderProductDto 对象数据
     */
    @RequestMapping(value = "/queryAllocationOrderProducts", method = RequestMethod.POST)
    List<AllocationOrderProductDto> queryAllocationOrderProducts(@RequestBody AllocationOrderProductDto allocationOrderProductDto);

    /**
     * 查询<p>小区楼</p>总记录数
     *
     * @param allocationOrderProductDto 数据对象分享
     * @return 小区下的小区楼记录数
     */
    @RequestMapping(value = "/queryAllocationOrderProductsCount", method = RequestMethod.POST)
    int queryAllocationOrderProductsCount(@RequestBody AllocationOrderProductDto allocationOrderProductDto);
}
